package org.basic;

import io.netty.buffer.ByteBuf;
import io.netty.buffer.ByteBufAllocator;

/**
 * @author wind
 * @create 2025-01-16 17:24
 */
public class ByteBufDemo {
    public static void main(String[] args) {
        ByteBuf buffer = ByteBufAllocator.DEFAULT.buffer();
        buffer.writeBytes("hello".getBytes());
        buffer.writeInt(1010000);

        buffer.writeBytes("hello world,this is wind,can you understand me?".getBytes());
        System.out.println(buffer.capacity());
    }
}
